package com.tianxiabuyi.model.pojo;

import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by liqun on 2018/1/22.
 */
@Entity
@Table(name = "danger")
public class Danger extends TXBYObject {
    private String dangerNO;//危急值编码
    private String sendTime;//发送时间
    private String handleId;//处理人id
    private String handleName;//处理人名称
    private String handleTime;//处理时间
    private String handleContent;//处理内容


    public String getDangerNO() {
        return dangerNO;
    }

    public void setDangerNO(String dangerNO) {
        this.dangerNO = dangerNO;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getHandleId() {
        return handleId;
    }

    public void setHandleId(String handleId) {
        this.handleId = handleId;
    }

    public String getHandleName() {
        return handleName;
    }

    public void setHandleName(String handleName) {
        this.handleName = handleName;
    }

    public String getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(String handleTime) {
        this.handleTime = handleTime;
    }

    public String getHandleContent() {
        return handleContent;
    }

    public void setHandleContent(String handleContent) {
        this.handleContent = handleContent;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Danger danger = (Danger) o;

        if (dangerNO != null ? !dangerNO.equals(danger.dangerNO) : danger.dangerNO != null) return false;
        if (sendTime != null ? !sendTime.equals(danger.sendTime) : danger.sendTime != null) return false;
        if (handleId != null ? !handleId.equals(danger.handleId) : danger.handleId != null) return false;
        if (handleName != null ? !handleName.equals(danger.handleName) : danger.handleName != null) return false;
        if (handleTime != null ? !handleTime.equals(danger.handleTime) : danger.handleTime != null) return false;
        return handleContent != null ? handleContent.equals(danger.handleContent) : danger.handleContent == null;
    }

    @Override
    public int hashCode() {
        int result = dangerNO != null ? dangerNO.hashCode() : 0;
        result = 31 * result + (sendTime != null ? sendTime.hashCode() : 0);
        result = 31 * result + (handleId != null ? handleId.hashCode() : 0);
        result = 31 * result + (handleName != null ? handleName.hashCode() : 0);
        result = 31 * result + (handleTime != null ? handleTime.hashCode() : 0);
        result = 31 * result + (handleContent != null ? handleContent.hashCode() : 0);
        return result;
    }
}
